<?php
/* Clase del formulario FrmCompany que permite configurar la información de la compañia
 */
class FrmCompany{
	private $setter;
	private $easyForm;
	
	function FrmCompany(){
				
		$this->setter=new Setter("../../Config");
		
		$this->easyForm=new EasyForm("frmCompany","frmCompany","post", "../../Events/Admin/EventsFrmCompany.php","Información de la compañía:","", "", "");
		
		$this->easyForm->addInput(1,"Nombre:", "nombreCompany", "nombreCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Nombre:",$this->setter->getCompanyName());
		
		$this->easyForm->addInput(1,"NIT:", "NITCompany", "NITCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("NIT:",$this->setter->getCompanyId());
		
		$this->easyForm->addInput(1,"Pais:", "paisCompany", "paisCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Pais:",$this->setter->getCompanyCountry());
		
		$this->easyForm->addInput(1,"Ciudad:", "cityCompany", "cityCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Ciudad:",$this->setter->getCompanyCity());
		
		$this->easyForm->addInput(1,"Dirección:", "dirCompany", "dirCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Dirección:",$this->setter->getCompanyAdress());
		
		$this->easyForm->addInput(1,"Telefono 1:", "phoneCompany", "phoneCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Telefono 1:",$this->setter->getCompanyPhone());

		$this->easyForm->addInput(1,"WebSite:", "webCompany", "webCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("WebSite:",$this->setter->getCompanyWebSite());
		
		$this->easyForm->addInput(1,"email:", "emailCompany", "emailCompany","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("email:",$this->setter->getCompanyEmail());
		
		$this->easyForm->addInput(1,"Gerente General:", "managerCompany1", "managerCompany1","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Gerente General:",$this->setter->getCompanyManager());
		
		$this->easyForm->addInput(1,"Gerente Admin:", "managerCompany2", "managerCompany2","", "", "", "", "form", "", "", array());
		$this->easyForm->setItem("Gerente Admin:",$this->setter->getCompanyManagerAdmin());
		
		$this->easyForm->addButton(2,"","actualizarCompany","actualizarCompany","","Actualizar","Actualizar","button","","button","","","","","",array("onclick"=>"GETMethodSend('nombreCompany','NITCompany','paisCompany','paisCompany','cityCompany','dirCompany','phoneCompany','webCompany','emailCompany','managerCompany1','managerCompany2',this.id,'adminContent','../../Events/Admin/EventsFrmCompany.php')"));
		
		
	}
	function show(){
		$this->easyForm->show(1,11);
	}
}
?>